package com.hd123.rumba.log;

import java.util.List;

import com.hd123.rumba.runtime.Configuration;
import com.hd123.rumba.runtime.NamingMgr;

import junit.framework.TestCase;

public class TCEntityChangeLogMgr extends TestCase {

  private IEntityChangeLogMgr logMgr;
  
  public static void main(String[] args) {
    junit.textui.TestRunner.run(TCEntityChangeLogMgr.class);
  }

  public TCEntityChangeLogMgr(String arg0) {
    super(arg0);
    try {
      Configuration.getInstance().config("/rumba.xml;/myrumba.xml");
      logMgr = (IEntityChangeLogMgr) NamingMgr.getInstance().lookupMgr(IEntityChangeLogMgr.class);
    } catch (Exception e) {
      e.printStackTrace();
    }

  }

  protected void setUp() throws Exception {
    super.setUp();
  }

  protected void tearDown() throws Exception {
    super.tearDown();
  }
  
  public void testGet() throws Exception {
    List<IEntityChangeLog> list = logMgr.getLogsByField("123456789", "abc");
    assertNotNull(list);
  }

}
